package com.ruoyi.blog.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 博客标签业务对象 blog_label
 *
 * @author ruoyi
 * @date 2023-10-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogLabelBo extends BaseEntity {

    /**
     * 博客标签id
     */
    @NotNull(message = "博客标签id不能为空", groups = { EditGroup.class })
    private Long labelId;

    /**
     * 博客标签名称
     */
    @NotBlank(message = "博客标签名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String label;

    /**
     * 博客标签颜色
     */
    @ExcelProperty(value = "博客标签颜色")
    private String labelColor;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderBy;

    /**
     * 是否显示
     */
    @NotNull(message = "是否显示不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isShow;


}
